-- increase_skill_effect
-- created by dengc
-- 每回合技能效果提升

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    -- 每回合触发
    trigger = function(who, prop, value)
        -- 如果被变形了，那么直接return
        if FormulaM.invoke("MONSTER_IS_TRANSED", who) then
            return;
        end

        -- 记录初始值
        local v = who.dbase:query("increase_skill_effect") or 0;

        -- 记录
        local arr = {prop[1], prop[2], v, -1};
        PropM.record(who, arr, "increase_skill_effect");
    end,

    record = function(target, prop, path)
        if path == "skill" then
            target.dbase:set("increase_skill_effect", prop[3]);
        end
    end,
};
